<include file="Public:header1" />
<link rel="stylesheet" href="__CSS__/publish_gl.css">
<script type="text/javascript" src="__JS__/publish_gl.js"></script>
<script type="text/javascript" src="__ckeditor__/ckeditor.js"></script>


   <div class="well-small" style="background:#63B8FF;">
     发表新攻略
   </div>
   
<input type="hidden" id="user_id_hide" value="<?php echo $_SESSION['user']['Id']; ?>">


<div id="add_gl">
<form class="form-horizontal" method="post" action="">
   <legend>发布攻略</legend> 
   <div class="control-group">
      <label for="user_info_fbgl_theme" class="control-label">主题:</label>
      <div class="controls">
      <input type="text" id="user_info_fbgl_theme" name="user_info_fbgl_theme" placeholder="请在这里填写主题"  />
      <p class="help-inline" id="user_info_fbgl_theme_warning">请在这里填写主题</p>
      </div>
  </div>
  
  <div class="control-group">
      <label for="user_info_fbgl_game_kind" class="control-label">游戏分类:</label>
      <div class="controls">
      <select id="game_list_select">
       <option value="0">选择游戏大类</option>
        <foreach name="games_kind_list" item="vo">
        <option value ="{$vo.list_id}">{$vo.list_name}</option>
       </foreach>  
      </select>
      
       <select id="game_small_list_select">
        <option value="0">选择游戏小类</option>
        <foreach name="game_kind_small_list" item="vo">
        <option value ="{$vo.list_small_id}">{$vo.list_small_name}</option>
       </foreach> 
      </select>
      <p class="help-inline" id="user_info_fbgl_game_warning">请在这里填写游戏分类</p>
      </div>
  </div>
  
   <div class="control-group">
      <label for="user_info_fbgl_game" class="control-label">您对应的游戏:</label>
      <div class="controls">
      <!--列出游戏列表-->
     <div class="modal hide fade" id="show_games_modal_win">
         <div class="modal-header">
           <a class="close" data-dismiss="modal">×</a>
              <h3>选择游戏</h3>
          </div>
        <div class="modal-body" id="games_list">
        
        </div>
      <div class="modal-footer">
        <a class="btn" id="show_games_win_cancel_btn">关闭</a>
        <a class="btn btn-primary" id="game_seleck_ok">确定选择</a>
      </div>
    </div>
    <!--添加游戏框-->
    <div class="modal hide fade" id="add_game_win">
         <div class="modal-header">
           <a class="close" data-dismiss="modal">×</a>
              <h3>增加游戏</h3>
          </div>
        <div class="modal-body" id="add_game_form">
          <div class="control-group">
           <label for="add_game_kind" class="control-label">游戏分类:</label>
         <div class="controls">
          <select id="add_game_list_select">
          <option value="0">选择游戏大类</option>
           <foreach name="games_kind_list" item="vo">
           <option value ="{$vo.list_id}">{$vo.list_name}</option>
            </foreach>  
           </select>
      
          <select id="add_game_small_list_select">
           <option value="0">选择游戏小类</option>
            <foreach name="game_kind_small_list" item="vo">
             <option value ="{$vo.list_small_id}">{$vo.list_small_name}</option>
            </foreach> 
           </select>
         </div>  
      </div>   
      
    <div class="control-group">
      <label for="add_game_text" class="control-label">游戏名字:</label>
      <div class="controls">
      <input type="text" id="add_game_text" name="add_game_text" placeholder="请在这里填写游戏名字"  />
      </div>
   </div> 
     <div id="add_game_warning"></div> 
     </div>
     
      <div class="modal-footer">
        <a  class="btn" id="add_game_win_cancel_btn">关闭</a>
        <a  class="btn btn-primary" id="add_game_sub_btn">确定增加</a>
      </div>
    </div>
    
    
   <p class="help-inline" id="fbgl_game_warning">请在这里填写游戏</p>
   
   </div>
  </div>
  
  <div class="control-group">
      <label for="user_info_fbgl_content" class="control-label">攻略内容:</label>
     <div class="controls">
      <textarea rows="30" cols="50" id="user_info_fbgl_content" name="user_info_fbgl_content" placeholder="请在这里"></textarea>
      <p class="help-inline" id="user_info_fbgl_content_warning"></p>
      </div>
  </div>
  <div id="user_info_add_gl_warning" class="control-group"></div>
  <div class="form-actions" id="sub_reset_gl_div">
    <button class="btn btn-primary" type="button" id="gl_sub_btn">提交</button>
    <button class="btn btn-primary" type="reset" id="gl_reset_btn">重置</button>
  </div>
</form>   
</div>



<include file="Public:footer" />
